package autonomrobot;

import java.awt.Image;

/**
 *
 * @author Ragnar
 */
public class ImageProcessor implements Runnable
{
    private ImageResource imresource;
    private Image image;
    
    public ImageProcessor(ImageResource imageresource)
    {
        this.image = null;
        this.imresource = imageresource;
        Thread t = new Thread(this);
        t.start();
    }
    
    @Override
    public void run()
    {         
        this.image = this.imresource.getImage();
    }
}
